package com.codeavatar.catools.lib.tester;

/**
 * +----------------------------------------------------------------------
 * | @Author: codeavatar   @Year：2022
 * +----------------------------------------------------------------------
 * | @Email: codeavatar@aliyun.com
 * +----------------------------------------------------------------------
 **/
public class CaTimerLib {

    private long begintTime;
    private long endTime;

    public long start(){
        this.begintTime = System.currentTimeMillis();
        return this.begintTime;
    }

    public long stop(){
        this.endTime = System.currentTimeMillis();
        return this.endTime;
    }

    public long getResult(){
        return this.endTime-this.begintTime;
    }
}
